package com.linjiang;

import com.mybatis.MapperProxyFactory;

import java.util.List;

public class MyApplication {

    public static void main(String[] args) {
        //获取mapper接口代理对象
        UserMapper userMapper = MapperProxyFactory.getMapper(UserMapper.class);
        //执行查询方法
        List<User> userList = userMapper.getUser("小林", 23);
        User userById = userMapper.getUserById(1);
        System.out.println("查询结果："+userList);
        System.out.println("查询结果："+userById);
    }
}
